package game.ability;

import game.entity.AbsSprite;
import game.shared.Constants;

public class AbilityGoBack extends AbsAbility{

	public AbilityGoBack() {
		super();
	}

	@Override
	public void action() {
		for(int i=0; i<targetSprites.count(); i++)
		{
			AbsSprite sprite = targetSprites.getByIndex(i);
			sprite.setMoving(new MovingLeft(sprite.getSpeed()));
		}
	}
}
